package com.continuing.beef.domain.type;

import com.continuing.common.annotation.Excel;
import com.continuing.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 账单类型(更新会将老的数据存储下来，删除状态设置为已删除)对象 bill_type
 * 
 * @author ruoyi
 * @date 2021-09-16
 */
public class BillType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id */
    private Long id;

    /** 类型id */
    @Excel(name = "类型id")
    private String typeId;

    /** 父类型id（防止今后出现子父类型） */
    @Excel(name = "父类型id", readConverterExp = "防=止今后出现子父类型")
    private String typePareatId;

    /** 类型说明 */
    @Excel(name = "类型说明")
    private String typeExplain;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 所属部门id */
    @Excel(name = "所属部门id")
    private Long deptId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTypeId(String typeId) 
    {
        this.typeId = typeId;
    }

    public String getTypeId() 
    {
        return typeId;
    }
    public void setTypePareatId(String typePareatId) 
    {
        this.typePareatId = typePareatId;
    }

    public String getTypePareatId() 
    {
        return typePareatId;
    }
    public void setTypeExplain(String typeExplain) 
    {
        this.typeExplain = typeExplain;
    }

    public String getTypeExplain() 
    {
        return typeExplain;
    }
    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("typePareatId", getTypePareatId())
            .append("typeExplain", getTypeExplain())
            .append("orderNum", getOrderNum())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
